package com.managment.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Profile implements Serializable {
	private static final long serialVersionUID = 1L;
	private String name;
	private List<Task> tasks = new ArrayList<Task>();
	private boolean active;
	
	public Profile(){
		setActive(false);
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setTasks(List<Task> tasks) {
		this.tasks = tasks;
	}
	public List<Task> getTasks() {
		return tasks;
	}
	
	public void addTask(Task task){
		tasks.add(task);
	}
	
	public boolean removeTask(Task task){
		return tasks.remove(task);
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	public boolean isActive() {
		return active;
	}
	
}
